<template>
  <div>
    <div id="title">首页</div>
    <van-tabs color="#40C0C9">
      <van-tab name="article" title="随便逛逛">
        <ArticleListHomePage @change="change"/>
      </van-tab>
      <van-tab name="category" title="看看分类">
        <CategoryListHomePage />
      </van-tab>
    </van-tabs>
  </div>
</template>
<script>
import ArticleListHomePage from "./ArticleListHomePage.vue";
import CategoryListHomePage from "./CategoryListHomePage.vue";
export default {
  name: "homePage",
  components: {
    ArticleListHomePage,
    CategoryListHomePage,
  },
  methods:{
    change(){
      this.$parent.change(1)
    }
  }
};
</script>
